package com.market.controller.wx;

import com.market.bean.MarketCollect;
import com.market.bean.common.BaseRespVo;
import com.market.bean.common.CommonData;
import com.market.bean.vo.wx.WxCollectVo;
import com.market.service.wx.WxCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tan
 * @date 2023年01月01日 17:56
 */
@RestController
@RequestMapping("wx/collect")
public class WxCollectController {
    @Autowired
    WxCollectService collectService;

    @RequestMapping("list")
    public BaseRespVo list(Byte type,Integer page, Integer limit) {
        CommonData<WxCollectVo> data = collectService.list(type,page,limit);
        return BaseRespVo.ok(data);
    }
}
